home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Feb 91 / MacApp.Tech$ 2⁄22⁄91 / 3064-Re CFront⁄CopyBits E-Feb91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  46 lines  |  [TEXT/GEOL]

  1. Item    5805966                         22-Feb-91        15:50PST
  2.  
  3. From:   MOOF                            Rollin, Keith A
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. ------------------------------------------------------------------------------
  8.  
  9. Sub:    Re-CFront/CopyBits Error Probl
  10.  
  11. Bill K. writes:
  12. -----
  13. I'm new to MacApp/C++ and I was trying to implement a CopyBits() call in a
  14. Draw() method but keep getting an error from CFront during compilation. I've
  15. stripped the routine down to its bare bones:
  16.  
  17. #include <QuickDraw.h>
  18.  
  19. pascal void DrawMap(BitMap *srcMap, BitMap *dstMap, Rect *srcRect, Rect
  20. *dstRect);
  21.  
  22. pascal void DrawMap(BitMap *srcMap, BitMap *dstMap, Rect *srcRect, Rect
  23. *dstRect)
  24. {
  25.    CopyBits(srcMap, dstMap, srcRect, dstRect, srcCopy, 0L);
  26. }
  27.  
  28. and still get the error:
  29.  
  30. File "ZippyWorld:sample.cp"; line 7 # internal << CFront Version 1.0 (9/11/90;
  31. AT&T 2.0) ©Apple Computer, Inc. 1989-90 >> error: check( 4848912, 0, 136)
  32. -----
  33.  
  34. Bill,
  35.  
  36. I tried this out, and got the same results you did. I then looked up the
  37. declaration for CopyBits. It's describes as taking a RgnHandle as the last
  38. parameter, not a long. So I change the last parameter to "nil", and everything
  39. worked out OK.
  40.  
  41. I don't know why AT&T thinks "error: check( 5976738, 0, 136)" is a lucid
  42. message...
  43.  
  44. - Keith
  45.  
  46.